package pkp;

import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入打牌用户的个数：");
        int n = scanner.nextInt();//多少个人打
        System.out.println("请输入每人分牌的张数");
        int m = scanner.nextInt();//每人分多少牌

        //买牌
        CardGame cardGame = new CardGame();
        List<Card>  ret = cardGame.buyCard();
        System.out.println("买牌");
        System.out.println(ret);
        System.out.println("================");
        System.out.println("洗牌");
        cardGame.shuffle(ret);
        System.out.println(ret);
        System.out.println("==============");
        System.out.println("揭牌");
        List<List<Card>> hand =  cardGame.getCard(ret,n,m);
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌："+hand.get(i));
        }
        System.out.println("剩下的牌："+ret);
    }

}
